package com.lionel.edu;
import com.lionel.threadLocal.RequestHolder;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
/**
 * @author 714936489@qq.com
 * @date 2018/5/19 16:56
 */
@Controller
@RequestMapping("/threadlocal")
public class ThreadLocalController {
    @RequestMapping("/test")
    @ResponseBody
    public Long test(){
        return RequestHolder.get();
    }
}
